package com.zz.Interface.extend;

public class Test2 {
    public static void main(String args[]){
        Pig pig = new Pig();
       pig.run();
    }
}
interface Animal{
    default void run() {
        System.out.println("接口");
    }
}

interface Buanimal{
    String run();
}

class Fu{
    public void run(){
        System.out.println("父类");
    }
}
class Pig extends Fu implements Animal{

}